import request from '@/utils/request'

// 查询会员详细信息列表
export function listMemberDetailInfo(query) {
  return request({
    url: '/nongjt/memberDetailInfo/list',
    method: 'get',
    params: query
  })
}

// 查询会员详细信息详细
export function getMemberDetailInfo(id) {
  return request({
    url: '/nongjt/memberDetailInfo/' + id,
    method: 'get'
  })
}

// 新增会员详细信息
export function addMemberDetailInfo(data) {
  return request({
    url: '/nongjt/memberDetailInfo',
    method: 'post',
    data: data
  })
}

// 修改会员详细信息
export function updateMemberDetailInfo(data) {
  return request({
    url: '/nongjt/memberDetailInfo',
    method: 'put',
    data: data
  })
}

// 删除会员详细信息
export function delMemberDetailInfo(ids) {
  return request({
    url: '/nongjt/memberDetailInfo/' + ids,
    method: 'delete'
  })
}

// 审核会员信息
export function auditMemberDetailInfo(data) {
  return request({
    url: '/nongjt/memberDetailInfo/audit',
    method: 'put',
    data: data
  })
}

// 重置密码
export function resetPassword(data) {
  return request({
    url: '/nongjt/memberDetailInfo/resetPassword',
    method: 'put',
    data: data
  })
}

// 导出会员详细信息
export function exportMemberDetailInfo(query) {
  return request({
    url: '/nongjt/memberDetailInfo/export',
    method: 'post',
    params: query
  })
}
